export const planColumnsRes = {
  data: [
    {
      edit: "false",
      displayName: "modifier",
      name: "modifier",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "审核人",
      name: "reviewerReference",
      type: "com.ptc.core.meta.common.TypeInstanceIdentifier",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "完成百分比",
      name: "physicalCompletePercent",
      type: "java.lang.Double",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "任务代号",
      name: "taskCode",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "目标完成时间",
      name: "targetEndDate",
      type: "java.sql.Timestamp",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "目标工期",
      name: "targetDuration.millis",
      type: "java.lang.Long",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "名称",
      name: "name",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "创建时间",
      name: "thePersistInfo.createStamp",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "行号",
      name: "lineNumber",
      type: "java.lang.Long",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "编辑者",
      name: "editorReference",
      type: "com.ptc.core.meta.common.TypeInstanceIdentifier",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "任务状态",
      name: "plannableStatus",
      type: "com.ptc.core.meta.container.common.impl.DiscreteSetConstraint",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "工期类别",
      name: "durationType",
      type: "com.ptc.core.meta.container.common.impl.DiscreteSetConstraint",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "目标开始时间",
      name: "targetStartDate",
      type: "java.sql.Timestamp",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "实际开始时间",
      name: "actualStartDate",
      type: "java.sql.Timestamp",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "四级汇总节点",
      name: "FourthNode",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "上次修改时间",
      name: "thePersistInfo.modifyStamp",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "锁定时间",
      name: "lock.lockDate",
      type: "java.sql.Timestamp",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "实际完成时间",
      name: "actualEndDate",
      type: "java.sql.Timestamp",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "creator",
      name: "creator",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "锁定者",
      name: "lock.locker",
      type: "com.ptc.core.meta.common.TypeInstanceIdentifier",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "健康状态",
      name: "healthStatusType",
      type: "com.ptc.core.meta.container.common.impl.DiscreteSetConstraint",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "是否锁定",
      name: "lock.locked",
      type: "java.lang.Boolean",
      fieldValue: "",
    },
    {
      edit: "false",
      displayName: "关键节点",
      name: "KeyNode",
      type: "com.ptc.core.meta.container.common.impl.DiscreteSetConstraint",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "活动类型",
      name: "activityType",
      type: "com.ptc.core.meta.container.common.impl.DiscreteSetConstraint",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "交付物",
      name: "deliverable",
      type: "com.ptc.core.meta.common.TypeInstanceIdentifier",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "执行人",
      name: "resource",
      type: "com.ptc.core.meta.common.TypeInstanceIdentifier",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "工时",
      name: "effort",
      type: "java.lang.String",
      fieldValue: "",
    },
    {
      edit: "true",
      displayName: "前置任务",
      name: "predecessor",
      type: "com.ptc.core.meta.common.TypeInstanceIdentifier",
      fieldValue: "",
    },
  ],
  success: "true",
  detailMessage: "",
  message: "",
};

export const planShowColumnsRes = {
  userId: "wangzw14",
  tableName: "项目计划",
  language: "zh-CN",
  labelList: "",
};

export const planTableData = {
  data: {
    assignments: [],
    success: true,
    resources: [
      {
        resourceId: 27010713866,
        roleId: "",
        resourceName: "刘方",
        resourceType: "labor",
      },
      {
        resourceId: 25069340062,
        roleId: 24966819917,
        resourceName: "王志伟",
        resourceType: "labor",
      },
    ],
    deliverables: [],
    tasks: [
      {
        allocationPercentage: 100,
        notDeleteable: "",
        editorReference: "",
        modifier: "王志伟",
        show: true,
        parentIds: [],
        deliverable: [],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlan:27044653046",
        reviewerReference: "",
        predecessor: "",
        plannableStatus: "SCHEDULED",
        durationType: "",
        physicalCompletePercent: 0,
        taskCode: "",
        targetStartDate: "2022-02-10 08:00:00.0",
        actualStartDate: "",
        id: "27044653046",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "王志伟",
        resource: "",
        roleId: "",
        targetEndDate: "2022-02-25 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 0,
        assignmentId: "",
        healthStatusType: "UNAVAILABLE",
        dependencies: [],
        "lock.locked": false,
        isFolder: false,
        name: "M8V180马达总效率提升技术研究计划",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "WBS",
        lineNumber: 0,
        internalIndex: "",
        taskId: 27044653046,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653047",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "",
        targetStartDate: "2022-04-01 08:00:00.0",
        actualStartDate: "",
        id: "27044653047",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-05-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 21,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653046"],
        "lock.locked": false,
        isFolder: false,
        name: "原因分析",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "WBS",
        lineNumber: 1,
        internalIndex: -1,
        taskId: 27044653047,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046", "27044653047"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653048",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "1",
        targetStartDate: "2022-04-01 08:00:00.0",
        actualStartDate: "",
        id: "27044653048",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-05-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 21,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653047"],
        "lock.locked": false,
        isFolder: false,
        name: "原因分析",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "Task",
        lineNumber: 2,
        internalIndex: -1,
        taskId: 27044653048,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653049",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "",
        targetStartDate: "2022-05-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653049",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-06-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 22,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653046"],
        "lock.locked": false,
        isFolder: false,
        name: "方案设计",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "WBS",
        lineNumber: 3,
        internalIndex: -1,
        taskId: 27044653049,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046", "27044653049"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653050",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "2",
        targetStartDate: "2022-05-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653050",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-06-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 22,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653049"],
        "lock.locked": false,
        isFolder: false,
        name: "方案设计",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "Task",
        lineNumber: 4,
        internalIndex: -1,
        taskId: 27044653050,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653051",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "",
        targetStartDate: "2022-06-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653051",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-07-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 21,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653046"],
        "lock.locked": false,
        isFolder: false,
        name: "试验方案",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "WBS",
        lineNumber: 5,
        internalIndex: -1,
        taskId: 27044653051,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046", "27044653051"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653052",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "3",
        targetStartDate: "2022-06-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653052",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-07-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 21,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653051"],
        "lock.locked": false,
        isFolder: false,
        name: "试验方案",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "Task",
        lineNumber: 6,
        internalIndex: -1,
        taskId: 27044653052,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653053",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "",
        targetStartDate: "2022-07-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653053",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-08-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 21,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653046"],
        "lock.locked": false,
        isFolder: false,
        name: "试验验证",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "WBS",
        lineNumber: 7,
        internalIndex: -1,
        taskId: 27044653053,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046", "27044653053"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653054",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "4",
        targetStartDate: "2022-07-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653054",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-08-01 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 21,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653053"],
        "lock.locked": false,
        isFolder: false,
        name: "试验验证",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "Task",
        lineNumber: 8,
        internalIndex: -1,
        taskId: 27044653054,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653055",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "",
        targetStartDate: "2022-08-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653055",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-11-30 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 86,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653046"],
        "lock.locked": false,
        isFolder: false,
        name: "项目结项",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "WBS",
        lineNumber: 9,
        internalIndex: -1,
        taskId: 27044653055,
      },
      {
        allocationPercentage: 100,
        notDeleteable: false,
        editorReference: "",
        modifier: "",
        show: true,
        parentIds: ["27044653046", "27044653055"],
        effort: 0,
        oid: "com.pisx.pmgt.plan.PIPlanActivity:27044653056",
        predecessor: {},
        reviewerReference: "",
        plannableStatus: "SCHEDULED",
        durationType: "FixedDrtn",
        physicalCompletePercent: 0,
        taskCode: "5",
        targetStartDate: "2022-08-02 08:00:00.0",
        actualStartDate: "",
        id: "27044653056",
        FourthNode: "",
        "lock.lockDate": "",
        "thePersistInfo.modifyStamp": "2022-03-21 16:13:24.0",
        actualEndDate: "",
        creator: "",
        resource: 0,
        roleId: 0,
        targetEndDate: "2022-11-30 08:00:00.0",
        "lock.locker": "",
        "targetDuration.millis": 86,
        assignmentId: 0,
        healthStatusType: "UNAVAILABLE",
        dependencies: ["27044653055"],
        "lock.locked": false,
        isFolder: false,
        name: "项目结项",
        KeyNode: "",
        "thePersistInfo.createStamp": "2022-03-21 16:13:24.0",
        activityType: "Task",
        lineNumber: 10,
        internalIndex: -1,
        taskId: 27044653056,
      },
    ],
  }
}

/** 获取用户权限配置及活动属性配置 */
export const configUsers = 
{
  data: {
    success: true,
    returnData: {
      projectManager: { "OR:wt.org.WTUser:1151406681": "刘方(liuf7)" },
      currentUser: "OR:wt.org.WTUser:18411389593",
      projectAdmin: { "OR:wt.org.WTUser:18411389593": "王志伟(wangzw14)" },
      projectType: "cn.com.sany.SoftDevProject",
      projectTeamUsers: {
        "OR:wt.org.WTUser:1151406681": "刘方",
        "OR:wt.org.WTUser:18411389593": "王志伟",
      },
      projectEngineer: { "OR:wt.org.WTUser:18411389593": "王志伟(wangzw14)" },
      enumerateLocalList: {
        activityType: {
          Task: "任务",
          LOE: "配合任务",
          Rsrc: "独立式任务",
          FinishMilestone: "完成里程碑",
          Milestone: "开始里程碑",
          WBS: "WBS",
        },
        healthStatusType: {
          RED: "红",
          UNAVAILABLE: "灰",
          YELLOW: "黄",
          GREEN: "绿",
        },
        plannableStatus: {
          COMPLETED: "已完成",
          NOTOPEN: "进行中",
          SUSPENDED: "暂停",
          PENDINGAPPROVAL: "待审核",
          INPROCESS: "进行中",
          SCHEDULED: "未发布",
          APPROVAL_REJECTED: "审核被驳回",
        },
        plannableStatusFilter: {
          进行中: "INPROCESS,NOTOPEN",
          未发布: "SCHEDULED",
          审核被驳回: "APPROVAL_REJECTED",
          已完成: "COMPLETED",
          待审核: "PENDINGAPPROVAL",
        },
      },
      state: "PENDING",
      isAdmin: true,
      currentUserDisplay: "王志伟",
    },
  }
}

/**关键节点 */
export const keyNodes = {
  data:{
    data: [
      "软件立项评审(正式决策)",
      "软件需求评审(正式评审)",
      "接口需求评审(正式评审)",
      "软件合格性测试方案评审(正式评审)",
      "软件架构设计评审(正式评审)",
      "软件合格性测试结果评审(正式评审)",
      "版本发布评审(正式评审)",
      "项目验收评审(正式评审)",
      "项目结项评审(正式决策)",
    ],
      success: "true",
      detailMessage: "",
      message: "",
  }
}
